package org.jackysoft.workflow;

import org.apache.struts2.json.annotations.JSON;
import org.bson.types.ObjectId;
import org.jackysoft.entity.Identifiable;

import com.mongodb.DBObject;



/**
 * 工作项
 * */
public class WorkItem implements Identifiable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1288225443831056517L;
	private Long id = 0l;
	
	private Long workflowId;
	
	private String workflowName;
	
	private String owner;
	
	private String startDate;
	
	private Integer state;	
	
	private String starter;
	
	private String stepName;
    
	private long globalStepId;
	
	private String status;
	
	private String finishDate;
    
	long[] prevIds;
	
	private String actionName;
	
	private int actionId;
	
	private Integer stepId;
	
	private String starterName;
	
	private String  sendDate;
	
	private String  sender;
	
	
	private String title;
	
	private String senderId;

	
	
	
	public WorkItem() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public Integer getStepId() {
		return stepId;
	}

	public void setStepId(Integer stepId) {
		this.stepId = stepId;
	}

	public String getStarterName() {
		return starterName;
	}

	public void setStarterName(String starterName) {
		this.starterName = starterName;
	}

	public String getStepName() {
		return stepName;
	}

	public void setStepName(String stepName) {
		this.stepName = stepName;
	}

	public long getGlobalStepId() {
		return globalStepId;
	}

	public void setGlobalStepId(long globalStepId) {
		this.globalStepId = globalStepId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	

	public long[] getPrevIds() {
		return prevIds;
	}

	public void setPrevIds(long[] prevIds) {
		this.prevIds = prevIds;
	}

	public int getActionId() {
		return actionId;
	}

	public void setActionId(int actionId) {
		this.actionId = actionId;
	}
	
	public String getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(String finishDate) {
		this.finishDate = finishDate;
	}

	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

	public Long getWorkflowId() {
		return workflowId;
	}

	public void setWorkflowId(Long workflowId) {
		this.workflowId = workflowId;
	}

	public String getWorkflowName() {
		return workflowName;
	}

	public void setWorkflowName(String workflowName) {
		this.workflowName = workflowName;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getStarter() {
		return starter;
	}

	public void setStarter(String starter) {
		this.starter = starter;
	}

	public void setSenderId(String senderId) {
		this.senderId = senderId;
	}

	public String getSenderId() {
		return senderId;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
	    this.id = id;
		
	}

	@Override
	public void setObjectId(ObjectId objectId) {
		// TODO Auto-generated method stub
		
	}

	@Override@JSON(serialize=false)
	public ObjectId getObjectId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setLeaf(boolean leaf) {
		// TODO Auto-generated method stub
		
	}

	@Override@JSON(serialize=false)
	public Boolean isLeaf() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void setRoot(DBObject root) {
		// TODO Auto-generated method stub
		
	}

	@Override@JSON(serialize=false)
	public DBObject getRoot() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setSort(Integer sort) {
		// TODO Auto-generated method stub
		
	}

	@Override@JSON(serialize=false)
	public Integer getSort() {
		// TODO Auto-generated method stub
		return null;
	}	
	
	

}
